<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('advance/index')}">预播列表</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('advance/index')}">
			姓名:
			<input type="text" class="form-control" name="s_name" value="{$s_name}" placeholder="请输入姓名">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('advance/index')}">清空</a>
		</form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>明星姓名</th>
					<th>开播日期</th>
					<th>预定人数</th>
					<th>红包</th>
					<th>礼品</th>
					<th width="160">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="star" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.s_name}</td>
					<td>{$vo.l_date} {$vo.l_startime}</td>
					<td>{$vo.l_booked}</td>
					<td><if condition="$vo['l_package'] eq 10"><b style="color: red">有红包</b><else />无红包</if></td>
					<td><if condition="$vo['l_gift'] eq 10"><b style="color: red">有礼物</b><else />无礼物</if></td>
					<td>
						<a href='{:url("advance/edit",array("id"=>$vo["id"]))}'>编辑</a> |
						<if condition="$vo['l_status'] eq 10">
							<a href="{:url('advance/enabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要关闭此预播吗？">已开启</a>
							<else />
							<a href="{:url('advance/enabled',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要开启此预播吗？"><b style="color: red">已关闭</b></a>
						</if> |

						<if condition="$vo['l_top'] eq 10">
							<a href="{:url('advance/top',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要取消置顶吗？">已置顶</a>
							<else />
							<a href="{:url('advance/top',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要置顶此预播吗？"><b style="color: red">未置顶</b></a>
						</if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>